/* 自定义样式 - 信息栏和导航栏 */

/* 信息栏样式 */
.info-bar {
    background-color: #1d2233;
    color: white;
    padding: 0.2rem 0;
    width: 100%;
    height: 2rem;
    position: fixed;
    top: 0;
    z-index: 50;
}

.info-bar-container {
    width: 75%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* 内容靠右排列 */
    align-items: center;
    gap: 2rem; /* 在信息项和语言按钮之间添加间距 */
}

.info-items {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
}

.language-btn {
    padding: 0.1rem 0.6rem;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.3rem;
    font-size: 0.7rem;
    transition: background-color 0.3s;
}

    .language-btn:hover {
        background-color: #0081FA;
    }

/* 导航栏样式 */
.nav-bar {
    background-color: rgba(255, 255, 255, 0.7); /* 黑色透明背景 */
    backdrop-filter: blur(8px); /* 磨砂玻璃效果 */
    width: 100%;
    position: fixed;
    top: 2rem;
    z-index: 40;
    color: #121A27; /* 文字白色 */
}

.nav-container {
    width: 75%;
    height: 4.5rem;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    /*height: 2rem;
  filter: brightness(0) invert(1);  将logo转为白色 */
}

.nav-links {
    display: flex;
    gap: 6rem;
}

.nav-link {
    font-weight: 500;
    color: #121A27; /* 确保导航链接文字为白色 */
    transition: color 0.3s;
}

    .nav-link:hover {
        color: #0081FA; /* 悬停时稍微变暗 */
    }

/* 顶部空间 - 不再需要，因为首屏区域将直接从导航栏下方开始 */
.top-spacer {
    display: none;
}

/* Taiwind css */
.content-auto {
    content-visibility: auto;
}

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-rotate {
    transform: rotateY(var(--rotate, 0deg)) translateZ(var(--translate, 0px));
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-shadow {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* 首屏区域样式调整 */
.hero-section {
    margin-top: 2rem; /* 与导航栏底部对齐 */
    padding-top: 5vh; /* 增加内容距离顶部的距离 */
    padding-bottom: 5vh; /* 增加内容距离底部的距离 */
}

/* 视频播放速度控制器 */
.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    z-index: 20;
    display: flex;
    align-items: center;
    color: white;
}

    .video-controls label {
        margin-right: 10px;
        font-size: 0.8rem;
    }

    .video-controls input {
        width: 100px;
    }

/* 首屏区域内容上下移动动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 首屏内容和数据统计的浮动效果 */
.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* 数据统计项的交错动画 */
.float-animation-delay-1 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.float-animation-delay-2 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

.float-animation-delay-3 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.float-animation-delay-4 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}
